package a.f;

import a.c.ab;
import a.c.bb;
import a.c.*;
import a.d.c;
import a.d.n;
import a.d.s;
import a.d.t;

import java.awt.*;
import java.awt.geom.Rectangle2D;
import java.util.*;
import java.util.List;

public class wc
{
  public static final int a = 1;
  public static final int b = 2;
  public static final int c = 3;
  public static final int d = 4;
  private static final double e = 0.5D;
  public static final byte f = 2;
  public static final byte g = 0;
  public static final byte h = 3;
  public static final byte i = 1;
  public static final byte j = -1;
  private static final double k = 0.0001D;
  private static final byte l = 0;
  private static final byte m = 1;
  private static final a.d.y n = new a.d.y();
  private static final a.d.w o = a.d.w.c;
  public static int p;
  
  public static byte a(o paramo, a.c.k paramk)
  {
    boolean bool = o.eg;
    int i2 = o.dg;
    int i1 = 0;
    int[] arrayOfInt = new int[4];
    m localm = paramo.w();
    label145:
    label147:
    label150:
    do
    {
      do
      {
        do
        {
          if (!localm.e()) {
            break label150;
          }
          d locald = localm.a();
          if (((!bool) && (paramk == null)) || (paramk.getBool(locald)))
          {
            a.d.y localy = paramo.n(locald);
            i1 += localy.j() - 1;
            a.d.v localv = localy.l();
            do
            {
              if (!localv.e()) {
                break;
              }
              n localn = localv.a();
              a(localn, arrayOfInt);
              localv.f();
              if (bool) {
                break label147;
              }
              if (i2 != 0) {
                break label145;
              }
            } while (i2 == 0);
          }
        } while (bool);
        localm.f();
      } while (i2 == 0);
    } while (bool);
    return a(arrayOfInt, i1);
  }
  
  public static boolean b(o paramo, a.c.k paramk)
  {
    return a(paramo, paramk, (byte)1);
  }
  
  public static boolean c(o paramo, a.c.k paramk)
  {
    return a(paramo, paramk, (byte)0);
  }
  
  private static boolean a(o paramo, a.c.k paramk, byte paramByte)
  {
    boolean bool = o.eg;
    int i5 = o.dg;
    int i1 = 0;
    int i2 = 0;
    int i3 = 0;
    m localm = paramo.w();
    label245:
    do
    {
      do
      {
        if (!localm.e()) {
          break;
        }
        d locald = localm.a();
        if (bool) {
          break label310;
        }
        if (i5 != 0) {
          break label309;
        }
        if ((bool) || (paramk != null))
        {
          if (bool) {
            continue;
          }
          if (!paramk.getBool(locald)) {}
        }
        else
        {
          i1++;
          a.d.y localy = paramo.n(locald);
          if (!bool) {
            if (localy.j() == 2) {
              i3++;
            }
          }
          int i4 = 1;
          a.d.v localv = localy.l();
          do
          {
            if (!localv.e()) {
              break;
            }
            n localn = localv.a();
            double d1 = Math.abs(localn.k());
            double d2 = Math.abs(localn.l());
            if (i5 != 0) {
              break label245;
            }
            if (d1 > 0.0001D)
            {
              if (bool) {
                continue;
              }
              if (d2 > 0.0001D) {
                if (!bool)
                {
                  if (paramByte != 1)
                  {
                    if (bool) {
                      continue;
                    }
                    if (Math.abs(d1 - d2) <= 0.0001D) {}
                  }
                  else
                  {
                    i4 = 0;
                  }
                }
                else
                {
                  if (bool) {
                    continue;
                  }
                  if (i5 == 0) {
                    break;
                  }
                }
              }
            }
            localv.f();
          } while (i5 == 0);
          if (bool) {
            continue;
          }
          if (i4 != 0) {
            i2++;
          }
        }
        localm.f();
      } while (i5 == 0);
    } while (bool);
    if (!bool) {
      if (i2 != i1)
      {
        if (bool) {
          break label312;
        }
        if (i2 <= i3) {
          break label311;
        }
        if (bool) {
          break label312;
        }
        if (i2 <= 0.5D * i1) {
          break label311;
        }
      }
    }
    label309:
    label310:
    return true;
    label311:
    label312:
    return false;
  }
  
  private static byte a(int[] paramArrayOfInt, int paramInt)
  {
    boolean bool = o.eg;
    int i1 = 2;
    byte b1 = 0;
    if (!bool) {
      if (paramArrayOfInt[i1] > paramArrayOfInt[0])
      {
        i1 = 0;
        b1 = 2;
      }
    }
    if (!bool)
    {
      if (paramArrayOfInt[i1] > paramArrayOfInt[3])
      {
        i1 = 3;
        b1 = 1;
      }
      if (bool) {}
    }
    else if (paramArrayOfInt[i1] > paramArrayOfInt[1])
    {
      i1 = 1;
      b1 = 3;
    }
    if (!bool) {
      if (paramArrayOfInt[b1] > 0.3D * paramInt)
      {
        if (bool) {
          break label101;
        }
        if (paramArrayOfInt[b1] > 5 * paramArrayOfInt[i1]) {
          return b1;
        }
      }
    }
    label101:
    return -1;
  }
  
  private static boolean a(n paramn)
  {
    boolean bool = o.eg;
    a.d.w localw1 = paramn.d();
    a.d.w localw2 = paramn.e();
    if (!bool) {
      if (localw1.a != localw2.a) {
        if (bool) {
          break label47;
        }
      }
    }
    label47:
    return localw1.b == localw2.b;
  }
  
  private static void a(n paramn, int[] paramArrayOfInt)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    a.d.w localw1 = paramn.d();
    a.d.w localw2 = paramn.e();
    if (!bool) {
      if (localw1.a < localw2.a)
      {
        paramArrayOfInt[1] += 1;
        if (bool) {
          break label87;
        }
        if (i1 == 0) {
          break label78;
        }
      }
    }
    if (!bool) {
      if (localw1.a > localw2.a) {
        paramArrayOfInt[3] += 1;
      }
    }
    label78:
    label87:
    if (!bool) {
      if (localw1.b < localw2.b) {
        paramArrayOfInt[0] += 1;
      }
    }
    if ((bool) || ((i1 != 0) && (localw1.b > localw2.b))) {
      paramArrayOfInt[2] += 1;
    }
  }
  
  public static double a(o paramo, e parame1, e parame2)
  {
    double d1 = paramo.m(parame1);
    double d2 = paramo.n(parame1);
    double d3 = paramo.m(parame2);
    double d4 = paramo.n(parame2);
    return a.d.w.a(d1, d2, d3, d4);
  }
  
  public static double a(o paramo, d paramd)
  {
    int i2 = o.dg;
    a.d.w localw1 = paramo.r(paramd);
    double d1 = localw1.a;
    double d2 = localw1.b;
    zb localzb = paramo.b(paramd);
    double d5 = 0.0D;
    int i1 = 0;
    do
    {
      if (i1 >= localzb.a()) {
        break;
      }
      a.d.w localw3 = localzb.a(i1);
      d3 = localw3.a;
      if (i2 != 0) {
        break label112;
      }
      d4 = localw3.b;
      d5 += a.d.w.a(d1, d2, d3, d4);
      d1 = d3;
      d2 = d4;
      i1++;
    } while (i2 == 0);
    label112:
    a.d.w localw2 = paramo.s(paramd);
    double d3 = localw2.a;
    double d4 = localw2.b;
    d5 += a.d.w.a(d1, d2, d3, d4);
    return d5;
  }
  
  public static void a(zb paramzb)
  {
    boolean bool = o.eg;
    int i2 = o.dg;
    if (paramzb.a() > 0)
    {
      localObject = new ArrayList(paramzb.a());
      int i1 = paramzb.a() - 1;
      do
      {
        if (i1 < 0) {
          break;
        }
        ((List)localObject).add(paramzb.a(i1));
        i1--;
        if (bool) {
          break label90;
        }
        if (i2 != 0) {
          break label89;
        }
      } while (i2 == 0);
      if (bool) {
        break label145;
      }
      paramzb.b();
      label89:
      label90:
      i1 = 0;
      do
      {
        if (i1 >= ((List)localObject).size()) {
          break;
        }
        if (bool) {
          break label150;
        }
        a.d.w localw = (a.d.w)((List)localObject).get(i1);
        if (i2 != 0) {
          break label145;
        }
        paramzb.a(localw.a(), localw.b());
        i1++;
      } while (i2 == 0);
    }
    label145:
    label150:
    Object localObject = paramzb.c();
    paramzb.a(paramzb.d());
    paramzb.b((a.d.w)localObject);
  }
  
  public static void a(o paramo)
  {
    a(paramo, true);
  }
  
  public static void a(o paramo, boolean paramBoolean)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    m localm;
    if (paramBoolean)
    {
      localm = paramo.w();
      do
      {
        if (!localm.e()) {
          break;
        }
        locald = localm.a();
        paramo.a(locald, o);
        paramo.b(locald, o);
        paramo.b(locald, n);
        localm.f();
      } while (i1 == 0);
    }
    while (bool)
    {
      d locald;
      localm = paramo.w();
      while (i1 == 0)
      {
        if (!localm.e()) {
          break;
        }
        paramo.b(localm.a(), n);
        localm.f();
      }
    }
  }
  
  public static void b(o paramo, d paramd)
  {
    a(paramo, paramd, true);
  }
  
  public static void a(o paramo, d paramd, boolean paramBoolean)
  {
    if (paramBoolean)
    {
      paramo.a(paramd, o);
      paramo.b(paramd, o);
    }
    paramo.b(paramd, n);
  }
  
  public static void b(o paramo)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    do
    {
      m localm = paramo.w();
      while (i1 == 0)
      {
        if (!localm.e()) {
          break;
        }
        c(paramo, localm.a());
        localm.f();
      }
    } while (bool);
  }
  
  public static void c(o paramo, d paramd)
  {
    boolean bool = o.eg;
    int i3 = o.dg;
    zb localzb = paramo.e(paramd);
    int i1 = 0;
    Object localObject = paramo.r(paramd);
    if ((bool) || (localzb.a() > 0))
    {
      int i2 = 0;
      a.d.w localw;
      do
      {
        if (i2 >= localzb.a()) {
          break;
        }
        localw = localzb.a(i2);
        if (i3 != 0) {
          break label108;
        }
        if (((a.d.w)localObject).equals(localw))
        {
          i1 = 1;
          if (!bool) {
            if (i3 == 0) {
              break;
            }
          }
        }
        else
        {
          localObject = localw;
          i2++;
        }
      } while (i3 == 0);
      if ((!bool) && (i1 == 0))
      {
        label108:
        if (!((a.d.w)localObject).equals(paramo.s(paramd))) {}
      }
      else
      {
        a.c.z localz = paramo.o(paramd);
        localw = (a.d.w)localz.f().c();
        a.c.v localv = localz.f().a();
        if (localv != localz.g()) {}
        while (bool)
        {
          if (!bool)
          {
            if (localv.c().equals(localw)) {
              localz.h(localv);
            }
            localw = (a.d.w)localv.c();
            localv = localv.a();
          }
          if (i3 == 0) {
            break;
          }
        }
        paramo.a(paramd, localz);
      }
    }
  }
  
  public static void a(o paramo, d paramd, double paramDouble1, double paramDouble2)
  {
    int i2 = o.dg;
    zb localzb = paramo.e(paramd);
    int i1 = localzb.a() - 1;
    do
    {
      if (i1 < 0) {
        break;
      }
      a.d.w localw = localzb.a(i1);
      localzb.a(i1, localw.a + paramDouble1, localw.b + paramDouble2);
      i1--;
    } while (i2 == 0);
  }
  
  public static void a(o paramo, m paramm, double paramDouble1, double paramDouble2)
  {
    boolean bool = o.eg;
    int i2 = o.dg;
    label111:
    label113:
    do
    {
      do
      {
        if (!paramm.e()) {
          return;
        }
        zb localzb = paramo.e(paramm.a());
        int i1 = localzb.a() - 1;
        do
        {
          if (i1 < 0) {
            break;
          }
          a.d.w localw = localzb.a(i1);
          localzb.a(i1, localw.a + paramDouble1, localw.b + paramDouble2);
          i1--;
          if (bool) {
            break label113;
          }
          if (i2 != 0) {
            break label111;
          }
        } while (i2 == 0);
      } while (bool);
      paramm.f();
    } while (i2 == 0);
  }
  
  public static void a(o paramo, e parame, double paramDouble1, double paramDouble2)
  {
    zc localzc = paramo.d(parame);
    localzc.a(localzc.a() + paramDouble1, localzc.b() + paramDouble2);
  }
  
  public static void a(o paramo, a.c.w paramw, double paramDouble1, double paramDouble2)
  {
    int i1 = o.dg;
    do
    {
      if (!paramw.e()) {
        break;
      }
      zc localzc = paramo.d(paramw.d());
      localzc.a(localzc.a() + paramDouble1, localzc.b() + paramDouble2);
      paramw.f();
    } while (i1 == 0);
  }
  
  public static void b(o paramo, m paramm, double paramDouble1, double paramDouble2)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    HashSet localHashSet = new HashSet();
    do
    {
      if (!paramm.e()) {
        break;
      }
      localObject = paramm.a();
      localHashSet.add(((d)localObject).e());
      if (!bool)
      {
        if (i1 != 0) {
          break label94;
        }
        localHashSet.add(((d)localObject).f());
        a(paramo, (d)localObject, paramDouble1, paramDouble2);
        paramm.f();
      }
    } while (i1 == 0);
    label94:
    Object localObject = localHashSet.iterator();
    do
    {
      if (!((Iterator)localObject).hasNext()) {
        break;
      }
      e locale = (e)((Iterator)localObject).next();
      a(paramo, locale, paramDouble1, paramDouble2);
    } while (i1 == 0);
  }
  
  public static void b(o paramo, a.c.w paramw, double paramDouble1, double paramDouble2)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    HashSet localHashSet = new HashSet();
    do
    {
      while (i1 == 0)
      {
        if (!paramw.e()) {
          break;
        }
        if (i1 != 0) {
          break label77;
        }
        a(paramo, paramw.d(), paramDouble1, paramDouble2);
        localHashSet.add(paramw.d());
        paramw.f();
      }
    } while (bool);
    label77:
    m localm = paramo.w();
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      if (!bool)
      {
        if (localHashSet.contains(locald.e()))
        {
          if (bool) {
            continue;
          }
          if (localHashSet.contains(locald.f())) {
            a(paramo, locald, paramDouble1, paramDouble2);
          }
        }
        localm.f();
      }
    } while (i1 == 0);
  }
  
  public static Rectangle2D a(o paramo, a.c.w paramw, m paramm)
  {
    boolean bool = o.eg;
    Rectangle2D localRectangle2D1 = a(paramo, paramw);
    Rectangle2D localRectangle2D2 = a(paramo, paramm);
    if (!bool)
    {
      if (localRectangle2D1.getWidth() < 0.0D) {
        return localRectangle2D2;
      }
      if (bool) {}
    }
    else
    {
      if (localRectangle2D2.getWidth() < 0.0D) {
        return localRectangle2D1;
      }
      localRectangle2D1.add(localRectangle2D2);
    }
    return localRectangle2D1;
  }
  
  public static Rectangle2D a(o paramo, e parame)
  {
    zc localzc = paramo.k(parame);
    return new Rectangle2D.Double(localzc.a(), localzc.b(), localzc.c(), localzc.d());
  }
  
  public static Rectangle2D a(o paramo, a.c.w paramw)
  {
    int i1 = o.dg;
    if (!paramw.e()) {
      return new Rectangle2D.Double(0.0D, 0.0D, -1.0D, -1.0D);
    }
    double d1 = 1.7976931348623157E+308D;
    double d2 = 1.7976931348623157E+308D;
    double d3 = -1.797693134862316E+308D;
    double d4 = -1.797693134862316E+308D;
    do
    {
      if (!paramw.e()) {
        break;
      }
      zc localzc = paramo.k(paramw.d());
      d1 = Math.min(d1, localzc.a());
      d2 = Math.min(d2, localzc.b());
      d3 = Math.max(d3, localzc.a() + localzc.c());
      d4 = Math.max(d4, localzc.b() + localzc.d());
      paramw.f();
    } while (i1 == 0);
    return new Rectangle2D.Double(d1, d2, d3 - d1, d4 - d2);
  }
  
  public static Rectangle2D d(o paramo, d paramd)
  {
    boolean bool = o.eg;
    int i2 = o.dg;
    a.d.w localw = paramo.r(paramd);
    double d1 = localw.a;
    double d2 = localw.a;
    double d3 = localw.b;
    double d4 = localw.b;
    localw = paramo.s(paramd);
    d1 = Math.min(d1, localw.a);
    d2 = Math.max(d2, localw.a);
    d3 = Math.min(d3, localw.b);
    d4 = Math.max(d4, localw.b);
    zb localzb = paramo.b(paramd);
    int i1 = localzb.a() - 1;
    do
    {
      while (i2 == 0)
      {
        if (i1 < 0) {
          break;
        }
        localw = localzb.a(i1);
        d1 = Math.min(d1, localw.a);
        d2 = Math.max(d2, localw.a);
        d3 = Math.min(d3, localw.b);
        d4 = Math.max(d4, localw.b);
        i1--;
      }
    } while (bool);
    return new Rectangle2D.Double(d1, d3, d2 - d1, d4 - d3);
  }
  
  public static Rectangle2D a(o paramo, m paramm)
  {
    boolean bool = o.eg;
    int i2 = o.dg;
    if (!paramm.e()) {
      return new Rectangle2D.Double(0.0D, 0.0D, -1.0D, -1.0D);
    }
    a.d.w localw = paramo.r(paramm.a());
    double d1 = localw.a;
    double d2 = localw.a;
    double d3 = localw.b;
    double d4 = localw.b;
    label289:
    label291:
    do
    {
      do
      {
        if (!paramm.e()) {
          break label294;
        }
        d locald = paramm.a();
        zb localzb = paramo.b(locald);
        int i1 = localzb.a() - 1;
        do
        {
          if (i1 < 0) {
            break;
          }
          localw = localzb.a(i1);
          d1 = Math.min(d1, localw.a);
          d2 = Math.max(d2, localw.a);
          d3 = Math.min(d3, localw.b);
          d4 = Math.max(d4, localw.b);
          i1--;
          if (bool) {
            break label291;
          }
          if (i2 != 0) {
            break label289;
          }
        } while (i2 == 0);
        localw = paramo.r(locald);
        d1 = Math.min(d1, localw.a);
        d2 = Math.max(d2, localw.a);
        d3 = Math.min(d3, localw.b);
        d4 = Math.max(d4, localw.b);
        localw = paramo.s(locald);
        d1 = Math.min(d1, localw.a);
        d2 = Math.max(d2, localw.a);
        d3 = Math.min(d3, localw.b);
        d4 = Math.max(d4, localw.b);
      } while (bool);
      paramm.f();
    } while (i2 == 0);
    label294:
    return new Rectangle2D.Double(d1, d3, d2 - d1, d4 - d3);
  }
  
  public static Rectangle2D a(o paramo, a.c.w paramw, m paramm, boolean paramBoolean)
  {
    boolean bool = o.eg;
    int i3 = o.dg;
    Rectangle2D localRectangle2D = a(paramo, paramw, paramm);
    label458:
    label460:
    if (paramBoolean)
    {
      paramw.h();
      Object localObject1;
      Object localObject2;
      Object localObject3;
      label223:
      label225:
      do
      {
        do
        {
          if (!paramw.e()) {
            break label228;
          }
          localObject1 = paramo.f(paramw.d());
          localObject2 = paramo.k(paramw.d());
          if (bool) {
            break label245;
          }
          if (i3 != 0) {
            break label239;
          }
          if (((bool) || (localObject1 != null)) && ((bool) || (localObject1.length > 0)))
          {
            int i1 = 0;
            do
            {
              if (i1 >= localObject1.length) {
                break;
              }
              localObject3 = localObject1[i1].a();
              t localt1 = ((yc)localObject3).a(localObject1[i1].d().f(), (zc)localObject2, localObject1[i1].e()).a();
              localRectangle2D.add(localt1.d, localt1.e);
              localRectangle2D.add(localt1.d + localt1.a, localt1.e + localt1.b);
              i1++;
              if (bool) {
                break label225;
              }
              if (i3 != 0) {
                break label223;
              }
            } while (i3 == 0);
          }
        } while (bool);
        paramw.f();
      } while (i3 == 0);
      label228:
      if (!bool) {
        paramm.h();
      }
      label239:
      label245:
      do
      {
        do
        {
          if (!paramm.e()) {
            break label463;
          }
          localObject1 = paramo.g(paramm.a());
          localObject2 = paramo.e(paramm.a());
          zc localzc = paramo.d(paramm.a().e());
          localObject3 = paramo.d(paramm.a().f());
          if (((bool) || (localObject1 != null)) && ((bool) || (localObject1.length > 0)))
          {
            int i2 = 0;
            do
            {
              if (i2 >= localObject1.length) {
                break;
              }
              xb localxb = localObject1[i2].a();
              t localt2 = localxb.a(localObject1[i2].d().f(), (zb)localObject2, localzc, (zc)localObject3, localObject1[i2].e()).a();
              localRectangle2D.add(localt2.d, localt2.e);
              localRectangle2D.add(localt2.d + localt2.a, localt2.e + localt2.b);
              i2++;
              if (bool) {
                break label460;
              }
              if (i3 != 0) {
                break label458;
              }
            } while (i3 == 0);
          }
        } while (bool);
        paramm.f();
      } while (i3 == 0);
    }
    label463:
    return localRectangle2D;
  }
  
  public static a.d.w a(yc paramyc, s params, zc paramzc, Object paramObject)
  {
    return paramyc.a(params, paramzc, paramObject).a().f();
  }
  
  public static a.d.w a(xb paramxb, s params, zb paramzb, zc paramzc1, zc paramzc2, Object paramObject)
  {
    return paramxb.a(params, paramzb, paramzc1, paramzc2, paramObject).a().f();
  }
  
  public static void c(o paramo)
  {
    int i1 = o.dg;
    a.d.w localw = a.d.w.c;
    m localm = paramo.w();
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      paramo.a(locald, localw);
      paramo.b(locald, localw);
      localm.f();
    } while (i1 == 0);
  }
  
  public static a.d.y a(zb paramzb, zc paramzc1, zc paramzc2)
  {
    return a(paramzb, paramzc1, paramzc2, 0.0D);
  }
  
  public static a.d.y e(o paramo, d paramd)
  {
    return a(paramo.b(paramd), paramo.k(paramd.e()), paramo.k(paramd.f()));
  }
  
  public static a.d.y a(zb paramzb, zc paramzc1, zc paramzc2, double paramDouble)
  {
    boolean bool = o.eg;
    int i5 = o.dg;
    a.d.w localw1 = new a.d.w(paramzc1.a() - paramDouble, paramzc1.b() - paramDouble);
    s locals1 = new s(paramzc1.c() + 2.0D * paramDouble, paramzc1.d() + 2.0D * paramDouble);
    a.d.w localw2 = new a.d.w(paramzc2.a() - paramDouble, paramzc2.b() - paramDouble);
    s locals2 = new s(paramzc2.c() + 2.0D * paramDouble, paramzc2.d() + 2.0D * paramDouble);
    ArrayList localArrayList1 = new ArrayList(paramzb.a() + 2);
    a.d.w localw3 = new a.d.w(paramzb.c().a() + localw1.a() + locals1.b() / 2.0D, paramzb.c().b() + localw1.b() + locals1.c() / 2.0D);
    localArrayList1.add(localw3);
    int i1 = 0;
    do
    {
      while (i5 == 0)
      {
        if (i1 >= paramzb.a()) {
          break;
        }
        localArrayList1.add(paramzb.a(i1));
        i1++;
      }
    } while (bool);
    a.d.w localw4 = new a.d.w(paramzb.d().a() + localw2.a() + locals2.b() / 2.0D, paramzb.d().b() + localw2.b() + locals2.c() / 2.0D);
    localArrayList1.add(localw4);
    a.d.w localw5 = (a.d.w)localArrayList1.get(0);
    a.d.w localw6 = (a.d.w)localArrayList1.get(localArrayList1.size() - 1);
    ArrayList localArrayList2 = new ArrayList();
    int i2 = 0;
    while (a(localw1, locals1, (a.d.w)localArrayList1.get(i2)))
    {
      i2++;
      if (i2 == localArrayList1.size()) {
        return new a.d.y();
      }
    }
    if (!bool) {
      if (i2 > 0) {
        localArrayList2.add(a(localw1, locals1, (a.d.w)localArrayList1.get(i2 - 1), (a.d.w)localArrayList1.get(i2)));
      }
    }
    int i3 = localArrayList1.size() - 1;
    do
    {
      while (i5 == 0)
      {
        if (i3 < i2) {
          break;
        }
        if (i5 != 0) {
          break label500;
        }
        if (!a(localw2, locals2, (a.d.w)localArrayList1.get(i3))) {
          break;
        }
        i3--;
      }
    } while (bool);
    label500:
    int i4 = i2;
    do
    {
      do
      {
        if (i4 > i3) {
          break;
        }
        localArrayList2.add(localArrayList1.get(i4));
        i4++;
        if (bool) {
          break label582;
        }
        if (i5 != 0) {
          break label572;
        }
      } while (i5 == 0);
      if (bool) {
        break label582;
      }
    } while (bool);
    if (i3 == localArrayList1.size() - 1) {
      return new a.d.y(localArrayList2);
    }
    label572:
    if (!bool) {
      if (!localArrayList2.isEmpty())
      {
        label582:
        if (bool) {
          break label637;
        }
        localArrayList2.add(a(localw2, locals2, (a.d.w)localArrayList1.get(i3 + 1), (a.d.w)localArrayList2.get(localArrayList2.size() - 1)));
        if (i5 == 0) {
          break label639;
        }
      }
    }
    label637:
    localArrayList2 = localArrayList1;
    label639:
    if ((bool) || (q.n)) {
      o.dg = ++i5;
    }
    if (q.o) {
      o.eg = !bool;
    }
    return new a.d.y(localArrayList2);
  }
  
  public static boolean f(o paramo, d paramd)
  {
    return b(paramo.b(paramd), paramo.k(paramd.e()), paramo.k(paramd.f()), 0.0D);
  }
  
  public static boolean b(zb paramzb, zc paramzc1, zc paramzc2, double paramDouble)
  {
    boolean bool = o.eg;
    int i5 = o.dg;
    a.d.w localw1 = new a.d.w(paramzc1.a() - paramDouble, paramzc1.b() - paramDouble);
    s locals1 = new s(paramzc1.c() + 2.0D * paramDouble, paramzc1.d() + 2.0D * paramDouble);
    a.d.w localw2 = new a.d.w(paramzc2.a() - paramDouble, paramzc2.b() - paramDouble);
    s locals2 = new s(paramzc2.c() + 2.0D * paramDouble, paramzc2.d() + 2.0D * paramDouble);
    ArrayList localArrayList = new ArrayList(paramzb.a() + 2);
    a.d.w localw3 = new a.d.w(paramzb.c().a() + localw1.a() + locals1.b() / 2.0D, paramzb.c().b() + localw1.b() + locals1.c() / 2.0D);
    localArrayList.add(localw3);
    int i1 = 0;
    while (i1 < paramzb.a())
    {
      localArrayList.add(paramzb.a(i1));
      i1++;
      if (i5 != 0)
      {
        if (!bool) {}
        q.n = !q.n;
      }
    }
    a.d.w localw4 = new a.d.w(paramzb.d().a() + localw2.a() + locals2.b() / 2.0D, paramzb.d().b() + localw2.b() + locals2.c() / 2.0D);
    localArrayList.add(localw4);
    a.d.w localw5 = (a.d.w)localArrayList.get(0);
    a.d.w localw6 = (a.d.w)localArrayList.get(localArrayList.size() - 1);
    if (!bool) {
      if (!a(localw1, locals1, localw5)) {
        localArrayList.add(0, new a.d.w(localw1.a() + locals1.b() / 2.0D, localw1.b() + locals1.c() / 2.0D));
      }
    }
    if (!bool) {
      if (!a(localw2, locals2, localw6)) {
        localArrayList.add(new a.d.w(localw2.a() + locals2.b() / 2.0D, localw2.b() + locals2.c() / 2.0D));
      }
    }
    int i2 = 0;
    int i3 = 0;
    int i4 = 0;
    do
    {
      if (i4 >= localArrayList.size()) {
        break;
      }
      a.d.w localw7 = (a.d.w)localArrayList.get(i4);
      if (i5 != 0) {
        break label566;
      }
      if (!a(localw1, locals1, localw7)) {
        i2 = 1;
      }
      if (!bool)
      {
        if (!a(localw2, locals2, localw7)) {
          i3 = 1;
        }
        i4++;
      }
    } while (i5 == 0);
    if ((!bool) && (i3 != 0)) {
      label566:
      if (bool) {}
    }
    if (bool) {
      q.o = !q.o;
    }
    return i2 != 0;
  }
  
  public static void d(o paramo)
  {
    int i1 = o.dg;
    m localm = paramo.w();
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      g(paramo, locald);
      localm.f();
    } while (i1 == 0);
  }
  
  public static void g(o paramo, d paramd)
  {
    a.d.y localy = e(paramo, paramd);
    List localList = localy.g();
    if (!o.eg)
    {
      if (!localList.isEmpty())
      {
        paramo.c(paramd, (a.d.w)localList.get(0));
        paramo.d(paramd, (a.d.w)localList.get(localList.size() - 1));
        localList.remove(localList.size() - 1);
      }
    }
    else
    {
      localList.remove(0);
      paramo.b(paramd, new a.d.y(localList));
    }
  }
  
  public static String h(o paramo, d paramd)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    StringBuffer localStringBuffer = new StringBuffer();
    a.c.y localy = paramo.l(paramd).a();
    do
    {
      if (!localy.e()) {
        break;
      }
      a.d.w localw = (a.d.w)localy.j();
      if (!bool)
      {
        if (i1 != 0) {
          break label115;
        }
        localStringBuffer.append("X: " + localw.a() + " Y: " + localw.b() + "\n");
        localy.f();
      }
    } while (i1 == 0);
    label115:
    return localStringBuffer.toString();
  }
  
  public static void b(o paramo, e parame)
  {
    s locals = paramo.u(parame);
    paramo.a(parame, a(locals));
    a.d.w localw = paramo.r(parame);
    paramo.b(parame, a(localw));
  }
  
  public static void i(o paramo, d paramd)
  {
    boolean bool = o.eg;
    int i2 = o.dg;
    List localList = paramo.l(paramd).g();
    ArrayList localArrayList = new ArrayList(localList.size());
    int i1 = 0;
    if (i1 < localList.size())
    {
      localArrayList.add(a((a.d.w)localList.get(i1)));
      i1++;
    }
    for (;;)
    {
      if ((bool) || (i2 == 0))
      {
        if (i2 == 0) {
          break;
        }
        paramo.b(paramd, new a.d.y(localArrayList));
        paramo.a(paramd, a(paramo.p(paramd)));
        if (!bool) {
          paramo.b(paramd, a(paramo.q(paramd)));
        }
      }
    }
  }
  
  public static void e(o paramo)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    Object localObject;
    do
    {
      localObject = paramo.w();
      while (i1 == 0)
      {
        if (!((m)localObject).e()) {
          break;
        }
        if (i1 != 0) {
          break label51;
        }
        i(paramo, ((m)localObject).a());
        ((m)localObject).f();
      }
    } while (bool);
    label51:
    do
    {
      localObject = paramo.v();
      while (i1 == 0)
      {
        if (!((a.c.w)localObject).e()) {
          break;
        }
        b(paramo, ((a.c.w)localObject).d());
        ((a.c.w)localObject).f();
      }
    } while (bool);
  }
  
  public static void a(o paramo, d paramd1, d paramd2, double paramDouble)
  {
    a(paramo, paramd1, paramd2, paramDouble, false, 0.0D, 0.0D);
  }
  
  public static void a(o paramo, d paramd1, d paramd2, double paramDouble1, boolean paramBoolean, double paramDouble2, double paramDouble3)
  {
    boolean bool = o.eg;
    int i5 = o.dg;
    int i1 = paramo.n(paramd1).j();
    a.d.w[] arrayOfw = new a.d.w[i1];
    int i2 = 0;
    Object localObject1 = paramo.n(paramd1).a();
    label176:
    label197:
    do
    {
      if (!((a.c.y)localObject1).e()) {
        break;
      }
      localObject2 = (a.d.w)((a.c.y)localObject1).j();
      if (bool) {
        break label221;
      }
      if (i5 != 0) {
        break label220;
      }
      if ((i2 <= 0) || ((bool) || (!((a.d.w)localObject2).equals(arrayOfw[(i2 - 1)]))))
      {
        if (!bool)
        {
          if (i2 > 1) {
            if (bool) {
              break label176;
            }
          }
        }
        else if (a.d.k.d(arrayOfw[(i2 - 2)], arrayOfw[(i2 - 1)], (a.d.w)localObject2))
        {
          arrayOfw[(i2 - 1)] = new a.d.w(((a.d.w)localObject2).a(), ((a.d.w)localObject2).b());
          if (bool) {
            continue;
          }
          if (i5 == 0) {
            break label197;
          }
        }
        arrayOfw[i2] = new a.d.w(((a.d.w)localObject2).a(), ((a.d.w)localObject2).b());
        i2++;
      }
      ((a.c.y)localObject1).f();
    } while (i5 == 0);
    i1 = i2;
    label220:
    if ((!bool) && (i1 < 2)) {
      label221:
      return;
    }
    localObject1 = new a.c.z();
    Object localObject2 = new a.d.z(arrayOfw[1], arrayOfw[0]);
    a.d.z localz1 = a.d.z.c((a.d.z)localObject2);
    localz1.b(paramDouble1);
    Object localObject3 = a.d.z.a(arrayOfw[1], localz1);
    label360:
    Object localObject6;
    Object localObject7;
    Object localObject8;
    if (paramBoolean)
    {
      localObject4 = new a.d.z((a.d.z)localObject2);
      i3 = 1;
      double d1 = ((a.d.z)localObject4).d();
      double d2 = (paramDouble3 * d1 + paramDouble2) / d1;
      if (!bool)
      {
        if (i1 == 2)
        {
          if (bool) {
            break label360;
          }
          if (d2 > 0.5D) {
            d2 = 0.5D;
          }
        }
        ((a.d.z)localObject4).b(d2);
        ((a.d.z)localObject4).a(localz1);
        if (bool) {}
      }
      else if (i1 > 2)
      {
        localObject6 = new c(a.d.z.a(arrayOfw[1], localz1), a.d.z.a(arrayOfw[0], localz1));
        a.d.z localz4 = a.d.z.c(new a.d.z(arrayOfw[2], arrayOfw[1]));
        localz4.b(paramDouble1);
        c localc1 = new c(a.d.z.a(arrayOfw[2], localz4), a.d.z.a(arrayOfw[1], localz4));
        localObject7 = c.a((c)localObject6, localc1);
        if (localObject7 != null)
        {
          localObject8 = new a.d.z((a.d.w)localObject7, arrayOfw[0]);
          if (bool) {
            break label506;
          }
          if (((a.d.z)localObject4).d() > ((a.d.z)localObject8).d())
          {
            i3 = 0;
            localObject3 = localObject7;
          }
        }
      }
      label506:
      if ((bool) || (i3 != 0)) {
        ((a.c.z)localObject1).add(a.d.z.a(arrayOfw[0], (a.d.z)localObject4));
      }
      if (bool) {
        break label554;
      }
      localw1 = arrayOfw[0];
      if (i5 == 0) {
        break label556;
      }
    }
    label554:
    a.d.w localw1 = a.d.z.a(arrayOfw[0], localz1);
    label556:
    Object localObject4 = new c(localw1, (a.d.w)localObject3);
    int i3 = 1;
    a.d.z localz3;
    do
    {
      if (i3 >= i1 - 1) {
        break;
      }
      localObject5 = localObject4;
      localz3 = a.d.z.c(new a.d.z(arrayOfw[(i3 + 1)], arrayOfw[i3]));
      if (!bool)
      {
        if (i5 != 0) {
          break label720;
        }
        localz3.b(paramDouble1);
      }
      a.d.w localw3 = a.d.z.a(arrayOfw[i3], localz3);
      a.d.w localw4 = a.d.z.a(arrayOfw[(i3 + 1)], localz3);
      localObject4 = new c(localw3, localw4);
      localObject6 = c.a((c)localObject5, (c)localObject4);
      if (!bool)
      {
        if (localObject6 != null) {
          ((a.c.z)localObject1).add(localObject6);
        }
        i3++;
      }
    } while (i5 == 0);
    label720:
    a.d.z localz2 = new a.d.z(arrayOfw[(i1 - 1)], arrayOfw[(i1 - 2)]);
    Object localObject5 = a.d.z.c(localz2);
    if (!bool)
    {
      ((a.d.z)localObject5).b(paramDouble1);
      if (!paramBoolean) {}
    }
    else
    {
      localz3 = new a.d.z(localz2);
      int i4 = 1;
      double d3 = localz3.d();
      double d4 = (paramDouble3 * d3 + paramDouble2) / d3;
      if (!bool)
      {
        if (i1 == 2)
        {
          if (bool) {
            break label829;
          }
          if (d4 > 0.5D)
          {
            d4 = 0.5D;
            i4 = 0;
          }
        }
        localz3.b(-d4);
        localz3.a((a.d.z)localObject5);
        label829:
        if (bool) {}
      }
      else if (i1 > 2)
      {
        localObject7 = a.d.z.c(new a.d.z(arrayOfw[(i1 - 2)], arrayOfw[(i1 - 3)]));
        ((a.d.z)localObject7).b(paramDouble1);
        localObject8 = new c(a.d.z.a(arrayOfw[(i1 - 2)], (a.d.z)localObject7), a.d.z.a(arrayOfw[(i1 - 3)], (a.d.z)localObject7));
        c localc2 = new c(a.d.z.a(arrayOfw[(i1 - 1)], (a.d.z)localObject5), a.d.z.a(arrayOfw[(i1 - 2)], (a.d.z)localObject5));
        a.d.w localw5 = c.a((c)localObject8, localc2);
        if (localw5 != null)
        {
          a.d.z localz5 = new a.d.z(localw5, arrayOfw[(i1 - 1)]);
          if (bool) {
            break label992;
          }
          if (localz3.d() > localz5.d()) {
            i4 = 0;
          }
        }
      }
      label992:
      if ((bool) || (i4 != 0)) {
        ((a.c.z)localObject1).add(a.d.z.a(arrayOfw[(i1 - 1)], localz3));
      }
      localw2 = arrayOfw[(i1 - 1)];
      if (bool) {
        break label1062;
      }
      if (i5 == 0) {
        break label1051;
      }
    }
    a.d.w localw2 = a.d.z.a(arrayOfw[(i1 - 1)], (a.d.z)localObject5);
    label1051:
    label1062:
    if (!bool)
    {
      if (paramd1.e().equals(paramd2.e()))
      {
        paramo.b(paramd2, (a.c.z)localObject1);
        paramo.a(paramd2, localw1, localw2);
        if (bool) {
          break label1108;
        }
      }
    }
    else if (i5 == 0) {
      return;
    }
    ((a.c.z)localObject1).j();
    paramo.b(paramd2, (a.c.z)localObject1);
    label1108:
    paramo.a(paramd2, localw2, localw1);
  }
  
  public static void a(o paramo, d paramd, ab paramab, double paramDouble)
  {
    a(paramo, paramd, paramab, paramDouble, false, false, 0.0D, 0.0D);
  }
  
  public static void a(o paramo, d paramd, ab paramab, double paramDouble1, boolean paramBoolean1, boolean paramBoolean2, double paramDouble2, double paramDouble3)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    double d1 = paramDouble1;
    double d2 = 0.0D;
    if (!bool)
    {
      if (paramBoolean1) {
        if (bool) {
          break label52;
        }
      }
    }
    else if (paramab.size() % 2 == 1) {
      d2 -= paramDouble1 * 0.5D;
    }
    label52:
    m localm = paramab.l();
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      a(paramo, paramd, locald, d1 + d2, paramBoolean2, paramDouble2, paramDouble3);
      if (i1 != 0) {
        break label136;
      }
      if (d1 < 0.0D) {
        d1 -= paramDouble1;
      }
      d1 = -d1;
      localm.f();
    } while (i1 == 0);
    if ((!bool) && (paramBoolean1)) {
      label136:
      if (paramab.size() % 2 == 1) {
        a(paramo, paramd, paramd, -paramDouble1 * 0.5D, paramBoolean2, paramDouble2, paramDouble3);
      }
    }
  }
  
  public static void j(o paramo, d paramd)
  {
    ArrayList localArrayList = new ArrayList();
    a.d.w localw1 = paramo.r(paramd.e());
    s locals = paramo.u(paramd.e());
    a.d.w localw2 = new a.d.w(localw1.a() + locals.b() / 4.0D, localw1.b() + locals.c() / 4.0D);
    localArrayList.add(new a.d.w(localw1.a() + locals.b() / 4.0D, localw1.b() - 20.0D));
    localArrayList.add(new a.d.w(localw1.a() - 20.0D, localw1.b() - 20.0D));
    localArrayList.add(new a.d.w(localw1.a() - 20.0D, localw1.b() + locals.c() / 4.0D));
    paramo.b(paramd, new a.d.y(localArrayList));
    paramo.c(paramd, localw2);
    paramo.d(paramd, localw2);
  }
  
  public static void a(o paramo, d paramd1, d paramd2)
  {
    paramo.c(paramd1, paramo.s(paramd2));
    paramo.d(paramd1, paramo.r(paramd2));
    paramo.b(paramd1, paramo.l(paramd2).i());
  }
  
  public static String f(o paramo)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    StringBuffer localStringBuffer = new StringBuffer("Node Positions:\n");
    do
    {
      a.c.w localw = paramo.v();
      while (i1 == 0)
      {
        if (!localw.e()) {
          break;
        }
        if (i1 != 0) {
          break label100;
        }
        localStringBuffer.append(localw.d() + " " + paramo.r(localw.d()) + "\n");
        localw.f();
      }
    } while (bool);
    label100:
    return localStringBuffer.toString();
  }
  
  public static void g(o paramo)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    a.c.w localw = paramo.v();
    if (localw.e()) {}
    while (bool)
    {
      paramo.b(localw.d(), new a.d.w(0.0D, 0.0D));
      localw.f();
      if ((!bool) && (i1 != 0)) {
        return;
      }
      if (i1 == 0) {
        break;
      }
    }
    a(paramo);
  }
  
  private static boolean a(a.d.w paramw1, s params, a.d.w paramw2)
  {
    boolean bool = o.eg;
    if (((bool) || (paramw2.a >= paramw1.a)) && ((bool) || (paramw2.b >= paramw1.b)) && ((bool) || (paramw2.a <= paramw1.a + params.b()))) {
      if (bool) {}
    }
    return paramw2.b <= paramw1.b + params.c();
  }
  
  private static a.d.w a(a.d.w paramw1, s params, a.d.w paramw2, a.d.w paramw3)
  {
    Point2D.Double localDouble = a(paramw1.a, paramw1.b, params.b(), params.c(), paramw2.a, paramw2.b, paramw3.a, paramw3.b, null);
    return new a.d.w(localDouble.x, localDouble.y);
  }
  
  private static Point2D.Double a(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4, double paramDouble5, double paramDouble6, double paramDouble7, double paramDouble8, Point2D.Double paramDouble)
  {
    boolean bool = o.eg;
    if ((bool) || (paramDouble == null)) {
      paramDouble = new Point2D.Double();
    }
    if (((bool) || (paramDouble5 >= paramDouble1)) && ((bool) || (paramDouble6 >= paramDouble2)) && ((bool) || ((paramDouble5 <= paramDouble1 + paramDouble3) && ((bool) || (paramDouble6 <= paramDouble2 + paramDouble4)))))
    {
      double d1 = paramDouble7 - paramDouble5;
      double d2 = paramDouble8 - paramDouble6;
      if (!bool)
      {
        if (d1 == 0.0D)
        {
          if (d2 < 0.0D)
          {
            paramDouble.x = paramDouble5;
            paramDouble.y = paramDouble2;
            return paramDouble;
          }
          paramDouble.x = paramDouble5;
          paramDouble.y = (paramDouble2 + paramDouble4);
          return paramDouble;
        }
        if (bool) {}
      }
      else if (d2 == 0.0D)
      {
        if (d1 < 0.0D)
        {
          paramDouble.x = paramDouble1;
          paramDouble.y = paramDouble6;
          return paramDouble;
        }
        paramDouble.x = (paramDouble1 + paramDouble3);
        paramDouble.y = paramDouble6;
        return paramDouble;
      }
      double d3 = d2 / d1;
      if (!bool) {
        if (d1 > 0.0D)
        {
          d4 = paramDouble6 + d3 * (paramDouble1 + paramDouble3 - paramDouble5);
          if (!bool) {
            if (d4 < paramDouble2)
            {
              paramDouble.x = (paramDouble5 + (paramDouble2 - paramDouble6) / d3);
              paramDouble.y = paramDouble2;
              return paramDouble;
            }
          }
          if (d4 <= paramDouble2 + paramDouble4)
          {
            paramDouble.x = (paramDouble1 + paramDouble3);
            paramDouble.y = d4;
            return paramDouble;
          }
          paramDouble.x = (paramDouble5 + (paramDouble2 + paramDouble4 - paramDouble6) / d3);
          paramDouble.y = (paramDouble2 + paramDouble4);
          return paramDouble;
        }
      }
      double d4 = paramDouble6 + d3 * (paramDouble1 - paramDouble5);
      if (!bool) {
        if (d4 < paramDouble2)
        {
          paramDouble.x = (paramDouble5 + (paramDouble2 - paramDouble6) / d3);
          paramDouble.y = paramDouble2;
          return paramDouble;
        }
      }
      if (d4 <= paramDouble2 + paramDouble4)
      {
        paramDouble.x = paramDouble1;
        paramDouble.y = d4;
        return paramDouble;
      }
      paramDouble.x = (paramDouble5 + (paramDouble2 + paramDouble4 - paramDouble6) / d3);
      paramDouble.y = (paramDouble2 + paramDouble4);
      return paramDouble;
    }
    paramDouble.x = paramDouble5;
    paramDouble.y = paramDouble6;
    return paramDouble;
  }
  
  private static a.d.w a(a.d.w paramw)
  {
    return new a.d.w(a(paramw.a()), a(paramw.b()));
  }
  
  private static s a(s params)
  {
    return new s(a(params.b()), a(params.c()));
  }
  
  private static double a(double paramDouble)
  {
    return Math.floor(paramDouble + 0.5D);
  }
  
  public static int a(Rectangle2D[] paramArrayOfRectangle2D, Rectangle2D paramRectangle2D, double paramDouble)
  {
    return a(paramArrayOfRectangle2D, paramRectangle2D, paramDouble, 1);
  }
  
  static void a(Rectangle2D[] paramArrayOfRectangle2D, Rectangle2D paramRectangle2D, double paramDouble, int[] paramArrayOfInt)
  {
    boolean bool = o.eg;
    int i11 = o.dg;
    if (((!bool) && (paramArrayOfRectangle2D == null)) || (paramArrayOfRectangle2D.length < 1))
    {
      if ((bool) || (paramRectangle2D != null)) {
        paramRectangle2D.setFrame(0.0D, 0.0D, 0.0D, 0.0D);
      }
      int tmp49_48 = 0;
      paramArrayOfInt[1] = tmp49_48;
      paramArrayOfInt[0] = tmp49_48;
    }
    double d1 = 0.0D;
    double d2 = 0.0D;
    int i1 = 0;
    do
    {
      if (i1 >= paramArrayOfRectangle2D.length) {
        break;
      }
      Rectangle2D localRectangle2D = paramArrayOfRectangle2D[i1];
      d1 = Math.max(d1, localRectangle2D.getWidth());
      if (!bool)
      {
        if (i11 != 0) {
          break label130;
        }
        d2 = Math.max(d2, localRectangle2D.getHeight());
        i1++;
      }
    } while (i11 == 0);
    if (!bool) {}
    label130:
    double d3 = d1 * d2 * paramArrayOfRectangle2D.length;
    double d4 = Math.sqrt(d3 / paramDouble);
    double d5 = d3 / d4;
    int i2 = (int)Math.floor(d5 / d1);
    int i3 = (int)Math.ceil(d5 / d1);
    int i4 = (int)Math.ceil(paramArrayOfRectangle2D.length / i2);
    int i5 = (int)Math.ceil(paramArrayOfRectangle2D.length / i3);
    if (!bool) {
      if (i2 * i4 < i3 * i5)
      {
        i6 = i2;
        i7 = i4;
        if (bool) {
          break label241;
        }
        if (i11 == 0) {
          break label240;
        }
      }
    }
    int i6 = i3;
    int i7 = i5;
    label240:
    label241:
    int i8 = 0;
    int i9 = 0;
    double d6 = 0.0D;
    double d7 = 0.0D;
    if (!bool) {
      if (d1 > d2)
      {
        i10 = 0;
        do
        {
          if (i10 >= paramArrayOfRectangle2D.length) {
            break;
          }
          paramArrayOfRectangle2D[i10].setFrame(i9 * d1, i8 * d2, paramArrayOfRectangle2D[i10].getWidth(), paramArrayOfRectangle2D[i10].getHeight());
          d6 = Math.max(d6, paramArrayOfRectangle2D[i10].getMaxX());
          d7 = Math.max(d7, paramArrayOfRectangle2D[i10].getMaxY());
          i9++;
          if ((!bool) && (i11 != 0)) {
            return;
          }
          if (!bool)
          {
            if (i9 >= i6)
            {
              i8++;
              i9 = 0;
            }
            i10++;
          }
        } while (i11 == 0);
      }
    }
    int i10 = 0;
    if (i10 < paramArrayOfRectangle2D.length) {}
    while (bool)
    {
      paramArrayOfRectangle2D[i10].setFrame(i9 * d1, i8 * d2, paramArrayOfRectangle2D[i10].getWidth(), paramArrayOfRectangle2D[i10].getHeight());
      d6 = Math.max(d6, paramArrayOfRectangle2D[i10].getMaxX());
      d7 = Math.max(d7, paramArrayOfRectangle2D[i10].getMaxY());
      i8++;
      if ((!bool) && (i11 != 0)) {
        return;
      }
      if (!bool)
      {
        if (i8 >= i7)
        {
          i9++;
          i8 = 0;
        }
        i10++;
      }
      if (i11 == 0) {
        break;
      }
    }
    if ((bool) || (paramRectangle2D != null)) {
      paramRectangle2D.setFrame(0.0D, 0.0D, d6, d7);
    }
    paramArrayOfInt[0] = i7;
    paramArrayOfInt[1] = i6;
  }
  
  public static Dimension b(Rectangle2D[] paramArrayOfRectangle2D, Rectangle2D paramRectangle2D, double paramDouble)
  {
    int[] arrayOfInt = new int[2];
    a(paramArrayOfRectangle2D, paramRectangle2D, paramDouble, arrayOfInt);
    return new Dimension(arrayOfInt[0], arrayOfInt[1]);
  }
  
  public static int a(Rectangle2D[] paramArrayOfRectangle2D, Rectangle2D paramRectangle2D, double paramDouble, int paramInt)
  {
    boolean bool = o.eg;
    int i7 = o.dg;
    if ((bool) || (paramArrayOfRectangle2D != null))
    {
      if (bool) {
        break label50;
      }
      if (paramArrayOfRectangle2D.length >= 1) {}
    }
    else
    {
      if ((bool) || (paramRectangle2D != null)) {
        paramRectangle2D.setFrame(0.0D, 0.0D, 0.0D, 0.0D);
      }
      return 0;
    }
    label50:
    double d2;
    double d1 = d2 = paramArrayOfRectangle2D[0].getWidth();
    double d4;
    double d3 = d4 = paramArrayOfRectangle2D[0].getHeight();
    int i1 = 1;
    do
    {
      do
      {
        if (i1 >= paramArrayOfRectangle2D.length) {
          break;
        }
        d5 = paramArrayOfRectangle2D[i1].getWidth();
        d1 = Math.min(d1, d5);
        d2 = Math.max(d2, d5);
        double d6 = paramArrayOfRectangle2D[i1].getHeight();
        d3 = Math.min(d3, d6);
        d4 = Math.max(d4, d6);
        i1++;
        if ((!bool) && (i7 != 0)) {
          break label210;
        }
      } while (i7 == 0);
    } while (bool);
    if (((bool) || (d3 / d4 > 0.95D)) && ((bool) || (d1 / d2 > 0.95D)))
    {
      localObject1 = new int[2];
      a(paramArrayOfRectangle2D, paramRectangle2D, paramDouble, (int[])localObject1);
      return localObject1[0];
    }
    label210:
    Object localObject1 = new a.c.z();
    double d5 = 0.0D;
    int i2 = 0;
    int i3 = 0;
    do
    {
      if (i3 >= paramArrayOfRectangle2D.length) {
        break;
      }
      Rectangle2D localRectangle2D1 = paramArrayOfRectangle2D[i3];
      ((a.c.z)localObject1).add(paramArrayOfRectangle2D[i3]);
      if (bool) {
        break label303;
      }
      d5 += localRectangle2D1.getWidth() * localRectangle2D1.getHeight();
      i3++;
      if (i7 != 0) {
        break label302;
      }
    } while (i7 == 0);
    if (!bool) {
      ((a.c.z)localObject1).a(new Comparator()
      {
        public int compare(Object paramAnonymousObject1, Object paramAnonymousObject2)
        {
          Rectangle2D localRectangle2D1 = (Rectangle2D)paramAnonymousObject1;
          Rectangle2D localRectangle2D2 = (Rectangle2D)paramAnonymousObject2;
          int i = l.a((int)localRectangle2D2.getHeight(), (int)localRectangle2D1.getHeight());
          if (!o.eg) {
            if (i == 0) {
              return l.a((int)localRectangle2D2.getWidth(), (int)localRectangle2D1.getWidth());
            }
          }
          return i;
        }
      });
    }
    label302:
    label303:
    double d7 = 0.0D;
    double d8 = 0.0D;
    double d9 = Math.max(d1, 0.9D * (paramDouble * Math.sqrt(d5 / paramDouble)));
    double d10 = 0.0D;
    double d11 = 0.0D;
    double d12 = 0.0D;
    double d13 = 0.0D;
    double d14 = d9;
    double d15 = 1.7976931348623157E+308D;
    Object localObject3 = null;
    Object localObject2 = new a.c.z();
    int i4 = 0;
    int i5 = 0;
    int i6 = 0;
    i5++;
    double d16 = 1.7976931348623157E+308D;
    Object localObject4 = new a.c.z();
    ((a.c.z)localObject2).add(localObject4);
    d13 = d10 = d11 = 0.0D;
    a.c.v localv1 = ((a.c.z)localObject1).f();
    if (localv1 != null) {}
    label536:
    label547:
    label552:
    while (bool)
    {
      Rectangle2D localRectangle2D2 = (Rectangle2D)localv1.c();
      if (bool) {
        break label614;
      }
      if (i7 != 0) {
        break label608;
      }
      if (d13 + localRectangle2D2.getWidth() > d14)
      {
        if (bool) {
          break label536;
        }
        if (((a.c.z)localObject4).size() > 0)
        {
          d16 = Math.min(d13 + localRectangle2D2.getWidth(), d16);
          d11 = Math.max(d11, d13);
          localObject4 = new a.c.z();
          ((a.c.z)localObject4).add(localRectangle2D2);
          ((a.c.z)localObject2).add(localObject4);
          d13 = localRectangle2D2.getWidth();
          if (bool) {
            break label552;
          }
          if (i7 == 0) {
            break label547;
          }
        }
      }
      ((a.c.z)localObject4).add(localRectangle2D2);
      d13 += localRectangle2D2.getWidth();
      if (!bool)
      {
        if (((a.c.z)localObject4).size() == 1) {
          d10 += ((Rectangle2D)((a.c.z)localObject4).a()).getHeight();
        }
        d11 = Math.max(d11, d13);
        localv1 = localv1.a();
      }
      if (i7 == 0) {
        break;
      }
    }
    label608:
    i6 = ((a.c.z)localObject2).size();
    label614:
    double d17 = d11 / d10;
    if (!bool)
    {
      if (d17 > 0.0D)
      {
        double d20 = Math.max(d17, paramDouble) / Math.min(d17, paramDouble);
        if (bool) {
          break label684;
        }
        if (d20 < d15)
        {
          d15 = d20;
          localObject3 = localObject2;
          localObject2 = new a.c.z();
        }
      }
      i4 = 1;
    }
    label684:
    if (!bool) {
      if (paramDouble * d10 > d11)
      {
        if (bool) {
          break label760;
        }
        if (i6 > 1) {
          i4 = 0;
        }
      }
    }
    label756:
    label758:
    label760:
    do
    {
      ((a.c.z)localObject2).clear();
      if (!bool) {
        if (d16 < 1.7976931348623157E+308D)
        {
          d14 = Math.max(1.1D * d14, d16);
          if (bool) {
            break label758;
          }
          if (i7 == 0) {
            break label756;
          }
        }
      }
      d14 *= 1.1D;
      if (i5 > 50)
      {
        if (bool) {
          break label773;
        }
        i4 = 1;
      }
      if (i4 == 0) {
        break;
      }
    } while ((bool) || (i7 != 0));
    label773:
    if (localObject3 != null) {
      localObject2 = localObject3;
    }
    d16 = 0.0D;
    localObject4 = ((a.c.z)localObject2).h();
    a.c.z localz2;
    Object localObject5;
    Rectangle2D localRectangle2D3;
    label955:
    label957:
    do
    {
      do
      {
        if (!((a.c.y)localObject4).e()) {
          break;
        }
        d17 = 0.0D;
        localz2 = (a.c.z)((a.c.y)localObject4).j();
        if (i7 != 0) {
          break label1137;
        }
        localObject5 = localz2.h();
        do
        {
          do
          {
            if (!((a.c.y)localObject5).e()) {
              break;
            }
            localRectangle2D3 = (Rectangle2D)((a.c.y)localObject5).j();
            localRectangle2D3.setFrame(d17, d16, localRectangle2D3.getWidth(), localRectangle2D3.getHeight());
            d17 += localRectangle2D3.getWidth();
            ((a.c.y)localObject5).f();
            if (bool) {
              break label957;
            }
            if (i7 != 0) {
              break label955;
            }
          } while (i7 == 0);
          d7 = Math.max(d7, d17);
          d16 += a(localz2);
          d8 = Math.max(d8, d16);
        } while (bool);
        ((a.c.y)localObject4).f();
      } while (i7 == 0);
    } while (bool);
    a.c.z localz1;
    double d19;
    label1429:
    label1431:
    switch (paramInt)
    {
    case 4: 
      localObject4 = ((a.c.z)localObject2).h();
      while (((a.c.y)localObject4).e())
      {
        localz1 = (a.c.z)((a.c.y)localObject4).j();
        d19 = (d7 - b(localz1)) / 2.0D;
        if ((bool) || (i7 != 0)) {
          break label1455;
        }
        localObject5 = localz1.f();
        if (localObject5 != null) {}
        while (bool)
        {
          localRectangle2D3 = (Rectangle2D)((a.c.v)localObject5).c();
          localRectangle2D3.setFrame(localRectangle2D3.getX() + d19, localRectangle2D3.getY(), localRectangle2D3.getWidth(), localRectangle2D3.getHeight());
          localObject5 = ((a.c.v)localObject5).a();
          if ((!bool) && (i7 != 0)) {
            break label1129;
          }
          if (i7 == 0) {
            break;
          }
        }
        ((a.c.y)localObject4).f();
      }
    case 2: 
      localObject4 = ((a.c.z)localObject2).h();
    case 3: 
      label1129:
      label1137:
      while (((a.c.y)localObject4).e())
      {
        localz1 = (a.c.z)((a.c.y)localObject4).j();
        d19 = d7 - b(localz1);
        if ((bool) || (i7 != 0)) {
          break label1455;
        }
        localObject5 = localz1.f();
        if (localObject5 != null) {}
        while (bool)
        {
          localRectangle2D3 = (Rectangle2D)((a.c.v)localObject5).c();
          localRectangle2D3.setFrame(localRectangle2D3.getX() + d19, localRectangle2D3.getY(), localRectangle2D3.getWidth(), localRectangle2D3.getHeight());
          localObject5 = ((a.c.v)localObject5).a();
          if ((!bool) && (i7 != 0)) {
            break label1265;
          }
          if (i7 == 0) {
            break;
          }
        }
        ((a.c.y)localObject4).f();
        label1265:
        continue;
        localObject4 = ((a.c.z)localObject2).h();
        do
        {
          do
          {
            if (!((a.c.y)localObject4).e()) {
              break label1434;
            }
            double d18 = 0.0D;
            localz2 = (a.c.z)((a.c.y)localObject4).j();
            if ((!bool) && (i7 != 0)) {
              break label1458;
            }
            if (localz2.size() > 1)
            {
              double d21 = (d7 - b(localz2)) / (localz2.size() - 1);
              a.c.v localv2 = localz2.f();
              do
              {
                if (localv2 == null) {
                  break;
                }
                Rectangle2D localRectangle2D4 = (Rectangle2D)localv2.c();
                localRectangle2D4.setFrame(d18, localRectangle2D4.getY(), localRectangle2D4.getWidth(), localRectangle2D4.getHeight());
                d18 += localRectangle2D4.getWidth() + d21;
                localv2 = localv2.a();
                if (bool) {
                  break label1431;
                }
                if (i7 != 0) {
                  break label1429;
                }
              } while (i7 == 0);
            }
          } while (bool);
          ((a.c.y)localObject4).f();
        } while (i7 == 0);
      }
    }
    label1434:
    if ((bool) || (paramRectangle2D != null)) {
      paramRectangle2D.setFrame(0.0D, 0.0D, d7, d8);
    }
    label1455:
    label1458:
    return ((a.c.z)localObject2).size();
  }
  
  private static double a(a.c.z paramz)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    double d1 = 0.0D;
    do
    {
      for (a.c.v localv = paramz.f(); i1 == 0; localv = localv.a())
      {
        if (localv == null) {
          break;
        }
        if (!bool)
        {
          if (i1 != 0) {
            break label62;
          }
          d1 = Math.max(((Rectangle2D)localv.c()).getHeight(), d1);
        }
      }
    } while (bool);
    label62:
    return d1;
  }
  
  private static double b(a.c.z paramz)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    double d1 = 0.0D;
    do
    {
      for (a.c.v localv = paramz.f(); i1 == 0; localv = localv.a())
      {
        if (localv == null) {
          break;
        }
        if (i1 != 0) {
          break label55;
        }
        d1 += ((Rectangle2D)localv.c()).getWidth();
      }
    } while (bool);
    label55:
    return d1;
  }
  
  public static boolean a(o paramo, d paramd, Rectangle2D paramRectangle2D)
  {
    int i1 = o.dg;
    a.c.z localz = paramo.o(paramd);
    Object localObject = (a.d.w)localz.b();
    do
    {
      if (localz.isEmpty()) {
        break;
      }
      a.d.w localw = (a.d.w)localz.b();
      if (i1 != 0) {
        break label80;
      }
      if (paramRectangle2D.intersectsLine(((a.d.w)localObject).a, ((a.d.w)localObject).b, localw.a, localw.b)) {
        return true;
      }
      localObject = localw;
    } while (i1 == 0);
    label80:
    return false;
  }
  
  public static void a(o paramo, dc paramdc)
  {
    boolean bool = o.eg;
    int i4 = o.dg;
    Object localObject1 = paramo.v();
    Object localObject2;
    Object localObject3;
    Object localObject4;
    do
    {
      if (!((a.c.w)localObject1).e()) {
        break;
      }
      localObject2 = ((a.c.w)localObject1).d();
      localObject3 = paramdc.d(localObject2);
      if ((bool) || (localObject3 != null))
      {
        localObject4 = paramo.d(localObject2);
        paramo.b((e)localObject2, ((zc)localObject3).c(), ((zc)localObject3).d());
        paramo.c((e)localObject2, ((zc)localObject3).a(), ((zc)localObject3).b());
      }
      localObject4 = paramdc.f(localObject2);
      xc[] arrayOfxc = paramo.f(localObject2);
      if (!bool)
      {
        if ((localObject4 != null) && (arrayOfxc != null))
        {
          int i2 = 0;
          do
          {
            do
            {
              if (i2 >= localObject4.length) {
                break;
              }
            } while (i4 != 0);
            if (i2 >= arrayOfxc.length) {
              break;
            }
            arrayOfxc[i2].a(localObject4[i2].e());
            i2++;
          } while (i4 == 0);
        }
        ((a.c.w)localObject1).f();
      }
    } while (i4 == 0);
    localObject1 = paramo.w();
    label422:
    do
    {
      wb[] arrayOfwb;
      do
      {
        a.d.w localw;
        do
        {
          if (!((m)localObject1).e()) {
            return;
          }
          localObject2 = ((m)localObject1).a();
          localObject3 = paramdc.e(localObject2);
          if ((!bool) && (localObject3 == null)) {
            break label422;
          }
          localObject4 = paramo.e(localObject2);
          ((zb)localObject4).a(((zb)localObject3).c());
          ((zb)localObject4).b(((zb)localObject3).d());
          if (bool) {
            break;
          }
          if (((zb)localObject4).a() != ((zb)localObject3).a())
          {
            ((zb)localObject4).b();
            i1 = 0;
            do
            {
              if (i1 >= ((zb)localObject3).a()) {
                break label422;
              }
              localw = ((zb)localObject3).a(i1);
              ((zb)localObject4).a(localw.a(), localw.b());
              i1++;
              if ((!bool) && (i4 != 0)) {
                break;
              }
            } while (i4 == 0);
          }
        } while (bool);
        int i1 = 0;
        do
        {
          if (i1 >= ((zb)localObject3).a()) {
            break label422;
          }
          localw = ((zb)localObject3).a(i1);
          ((zb)localObject4).a(i1, localw.a(), localw.b());
          i1++;
          if ((!bool) && (i4 != 0)) {
            break;
          }
        } while (i4 == 0);
        localObject4 = paramdc.g(localObject2);
        arrayOfwb = paramo.g(localObject2);
      } while (bool);
      if (!bool)
      {
        if ((localObject4 != null) && (arrayOfwb != null))
        {
          int i3 = 0;
          do
          {
            do
            {
              if (i3 >= localObject4.length) {
                break;
              }
            } while (i4 != 0);
            if (i3 >= arrayOfwb.length) {
              break;
            }
            arrayOfwb[i3].a(localObject4[i3].e());
            i3++;
          } while (i4 == 0);
        }
        ((m)localObject1).f();
      }
    } while (i4 == 0);
  }
  
  public static void a(o paramo, bb parambb, e parame, boolean paramBoolean, byte paramByte)
  {
    boolean bool = o.eg;
    int i1 = o.dg;
    if (parambb.size() > 1)
    {
      double d1 = 1.7976931348623157E+308D;
      double d2 = -1.797693134862316E+308D;
      double d3 = 0.0D;
      a.c.w localw1 = parambb.l();
      if (localw1.e()) {}
      label189:
      label198:
      while (bool)
      {
        e locale1 = localw1.d();
        zc localzc1 = paramo.d(locale1);
        if ((!bool) && (i1 != 0)) {
          break label218;
        }
        if (!bool)
        {
          if (paramBoolean)
          {
            d3 += localzc1.d();
            d1 = Math.min(d1, localzc1.b());
            d2 = Math.max(d2, localzc1.b() + localzc1.d());
          }
        }
        else
        {
          if (bool) {
            break label198;
          }
          if (i1 == 0) {
            break label189;
          }
        }
        d3 += localzc1.c();
        d1 = Math.min(d1, localzc1.a());
        d2 = Math.max(d2, localzc1.a() + localzc1.c());
        localw1.f();
        if (i1 == 0) {
          break;
        }
      }
      label218:
      localw1 = parame != null ? paramo.d(parame) : null;
      if (!bool) {}
      double d4;
      a.c.w localw2;
      e locale2;
      zc localzc2;
      switch (paramByte)
      {
      case -1: 
        if (paramBoolean)
        {
          d4 = (bool) || (localw1 != null) ? localw1.b() : d1;
          localw2 = parambb.l();
          do
          {
            if (!localw2.e()) {
              break;
            }
            locale2 = localw2.d();
            localzc2 = paramo.d(locale2);
            localzc2.a(localzc2.a(), d4);
            localw2.f();
          } while (i1 == 0);
        }
        d4 = (bool) || (localw1 != null) ? localw1.a() : d1;
        localw2 = parambb.l();
      case 0: 
      case 1: 
      case 2: 
        while (localw2.e())
        {
          locale2 = localw2.d();
          localzc2 = paramo.d(locale2);
          localzc2.a(d4, localzc2.b());
          localw2.f();
          if (i1 != 0)
          {
            if (paramBoolean)
            {
              d4 = (bool) || (localw1 != null) ? localw1.b() + localw1.d() * 0.5D : (d1 + d2) * 0.5D;
              localw2 = parambb.l();
              do
              {
                if (!localw2.e()) {
                  break;
                }
                locale2 = localw2.d();
                localzc2 = paramo.d(locale2);
                localzc2.a(localzc2.a(), d4 - localzc2.d() * 0.5D);
                localw2.f();
              } while (i1 == 0);
            }
            d4 = (bool) || (localw1 != null) ? localw1.a() + localw1.c() * 0.5D : (d1 + d2) * 0.5D;
            localw2 = parambb.l();
            while (localw2.e())
            {
              locale2 = localw2.d();
              localzc2 = paramo.d(locale2);
              localzc2.a(d4 - localzc2.c() * 0.5D, localzc2.b());
              localw2.f();
              if (i1 != 0)
              {
                if (paramBoolean)
                {
                  d4 = (bool) || (localw1 != null) ? localw1.b() + localw1.d() : d2;
                  localw2 = parambb.l();
                  do
                  {
                    if (!localw2.e()) {
                      break;
                    }
                    locale2 = localw2.d();
                    localzc2 = paramo.d(locale2);
                    localzc2.a(localzc2.a(), d4 - localzc2.d());
                    localw2.f();
                  } while (i1 == 0);
                }
                d4 = (bool) || (localw1 != null) ? localw1.a() + localw1.c() : d2;
                localw2 = parambb.l();
                while (localw2.e())
                {
                  locale2 = localw2.d();
                  localzc2 = paramo.d(locale2);
                  localzc2.a(d4 - localzc2.c(), localzc2.b());
                  localw2.f();
                  if (i1 != 0)
                  {
                    parambb.a(new Comparator()
                    {
                      private final o val$g;
                      private final boolean val$vertical;
                      
                      public int compare(Object paramAnonymousObject1, Object paramAnonymousObject2)
                      {
                        zc localzc1 = this.val$g.d(paramAnonymousObject1);
                        zc localzc2 = this.val$g.d(paramAnonymousObject2);
                        if (!o.eg) {
                          if (this.val$vertical) {
                            return l.a(localzc1.b() + localzc1.d() * 0.5D, localzc2.b() + localzc2.d() * 0.5D);
                          }
                        }
                        return l.a(localzc1.a() + localzc1.c() * 0.5D, localzc2.a() + localzc2.c() * 0.5D);
                      }
                    });
                    d4 = d2 - d1 - d3;
                    if (!bool) {
                      if (d4 <= 0.0D)
                      {
                        d5 = 0.0D;
                        if (bool) {
                          break label937;
                        }
                        if (i1 == 0) {
                          break label936;
                        }
                      }
                    }
                    double d5 = d4 / (parambb.size() - 1);
                    label936:
                    label937:
                    e locale3;
                    zc localzc3;
                    if (paramBoolean)
                    {
                      d6 = paramo.d(parambb.m()).b();
                      localw3 = parambb.l();
                      do
                      {
                        if (!localw3.e()) {
                          break;
                        }
                        locale3 = localw3.d();
                        localzc3 = paramo.d(locale3);
                        localzc3.a(localzc3.a(), d6);
                        d6 += localzc3.d() + d5;
                        localw3.f();
                      } while (i1 == 0);
                    }
                    double d6 = paramo.d(parambb.m()).a();
                    a.c.w localw3 = parambb.l();
                    do
                    {
                      if (!localw3.e()) {
                        break;
                      }
                      locale3 = localw3.d();
                      localzc3 = paramo.d(locale3);
                      localzc3.a(d6, localzc3.b());
                      d6 += localzc3.c() + d5;
                      localw3.f();
                    } while (i1 == 0);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
  static boolean a(a.d.o paramo)
  {
    boolean bool = o.eg;
    if (!bool) {
      if (!Double.isNaN(paramo.d()))
      {
        if (bool) {
          break label89;
        }
        if (!Double.isNaN(paramo.e()))
        {
          if (bool) {
            break label89;
          }
          if (!Double.isNaN(paramo.g()))
          {
            if (bool) {
              break label89;
            }
            if (!Double.isNaN(paramo.h()))
            {
              if (bool) {
                break label89;
              }
              if (!Double.isNaN(paramo.i())) {
                if (bool) {
                  break label89;
                }
              }
            }
          }
        }
      }
    }
    label89:
    return Double.isNaN(paramo.j());
  }
  
  public static boolean b(a.d.o paramo)
  {
    double d1 = paramo.j();
    if (!o.eg) {
      if (d1 > 0.0D)
      {
        a.d.w localw = paramo.l();
        paramo.c(-paramo.i(), -d1);
        paramo.b(localw);
        return true;
      }
    }
    return false;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.wc

 * JD-Core Version:    0.7.0.1

 */